FROM node:10.11.0
RUN mkdir -p /app
COPY . /app
WORKDIR /app
ENV HOST 0.0.0.0
EXPOSE 3000
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install
RUN npm run build
CMD ["npm", "start"]

# FROM nginx
# RUN mkdir /app
# COPY --from=0 /app/dist /app
# COPY nginx.conf /etc/nginx/nginx.conf